
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author marduke
 */
public class Fotos {

    public static void main(String[] args) {

		try{
			Nodos n = (Nodos) Naming.lookup("rmi://sapho.ldc.usb.ve/NodosService");
			System.out.println( n.Alcanzables(null, null) );
		} catch (MalformedURLException murle) {
			System.out.println("\n"+"MalformedURLException"+murle);
		}  catch (RemoteException re) {
			System.out.println("\n"+"RemoteException"+re);
		}  catch (NotBoundException nbe) {
			System.out.println("\n"+"NotBoundException"+nbe);
		}  catch (java.lang.ArithmeticException ae) {
			System.out.println("\n"+"java.lamgArithmeticException"+ae);
		}



	}

}
